package com.beiji.usercentert.commoon;

/**
 * 错误信息
 * @author beiji
 */
public enum ErrorCode {

    PARAMS_ERROR(4000, "请求参数错误"),
    NULL_DATA(4001, "请求数据错误"),
    NOT_LOGIN(40100,"未登录"),
    NOT_AUTH(40101, "无权限"),
    SYSTEM_EXCEPTION(50000, "服务端错误");

    /**
     * 响应状态码
     */
    private final Integer code;
    /**
     * 错误信息
     */
    private final String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
